import { request } from 'utils/request'
// 得到用户地址
export const getUserAddress = () => {
  return request({
    url: '/user/userAddress/auth/findUserAddressList',
    method: 'get'
  })
}
// 获取订单交易列表
export const getUserOrderList = () => {
  return request({
    url: '/order/auth/trade',
    method: 'get'
  })
}
// 提交订单
export const submitOrder = (tradeNo, data) => {
  return request({
    url: `/order/auth/submitOrder?tradeNo=${tradeNo}`,
    method: 'post',
    data
  })
}
